package com.zhuxulin.java.mail.client;

import java.io.BufferedReader;
import java.io.InputStreamReader;

import org.apache.mina.core.session.IoSession;

public class Client {

	public static void main(String[] args) {
		IoSession io = new MinaClient().getSession();
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			System.out.println("请输入A:");
			String a = null;
			do {
				a = br.readLine();
				io.write(a);
			} while (!a.equals(""));
		} catch (Exception e) {
		}
	}

}
